<h1><?php echo $title; ?></h1>
<div class="noprint">
<?php if (isset($notice) || $notice = $this->session->flashdata('notification')):?>
<p class="notice"><?php echo $notice;?></p>
<?php endif;?>



<form method='post' name="form1" id="form1" action="<?php echo site_url('adozioni/anagrafica/assistiti/results') ?>" >
<div class="form">



<div class="row">
	<div class="label">
		<label><?php echo __("ID", $module) ?></label>
	</div>
	<div class="input">
		<input type="text" id="filter[id]" name="filter[id]" value="" class=""/>
	</div>
</div>

<div class="row">
	<div class="label">
		<label><?php echo __("Tipo Assistito", $module) ?></label>
	</div>
	<div class="input">
		<select name="filter[id_tipo]" id="filter[id_tipo]">
		<option></option>
		<?php if($tipi = $this->ass->get_tipi()): ?>
		<?php foreach($tipi as $a): ?>
		<option value="<?php echo $a['id'] ?>"><?php echo $a['nome'] ?></option>
		<?php endforeach; ?>
		<?php endif; ?>
		</select>
	</div>
</div>

<div class="row">
	<div class="label">
		<label><?php echo __("Nome Cognome", $module) ?></label>
	</div>
	<div class="input">
		<input type="text" id="filter[nomecognome]" name="filter[nomecognome]" value="" class=""/>
	</div>
</div>

<div class="row">
	<div class="label">
		<label><?php echo __("Sesso", $module) ?></label>
	</div>
	<div class="">
		<?php echo $this->ass->select_sesso() ?>
	</div>
</div>

<div class="row">
	<div class="label">
		<label for="filter[from_day]"><?php echo __("Data di nascita", $module) ?></label>
	</div>
	<div class="">
		<?php echo __("Da : ", $module) ?><?php echo $this->ass->select_generic("filter[from_day]", 1, 31) ?>/<?php echo $this->ass->select_generic("filter[from_month]", 1, 12) ?>/<?php echo $this->ass->select_generic_rev("filter[from_year]", (date("Y") - 50), date("Y")) ?> 
		<?php echo __("A : ", $module) ?><?php echo $this->ass->select_generic("filter[to_day]", 1, 31) ?>/<?php echo $this->ass->select_generic("filter[to_month]", 1, 12) ?>/<?php echo $this->ass->select_generic_rev("filter[to_year]", (date("Y") - 50), date("Y")) ?>
	</div>
</div>

<div class="row">
	<div class="label">
		<label><?php echo __("Luogo di nascita", $module) ?></label>
	</div>
	<div class="input">
		<input type="text" id="filter[luogo_nascita]" name="filter[luogo_nascita]" value="" class=""/>
	</div>
</div>


<div class="row">
	<div class="label">
		<label><?php echo __("Info", $module) ?></label>
	</div>
	<div class="input">
		<input type="text" id="filter[info]" name="filter[info]" value="" class=""/>
	</div>
</div>

<div class="row">
	<div class="label">
		<label><?php echo __("Padre", $module) ?></label>
	</div>
	<div class="input">
		<input type="text" id="filter[padre]" name="filter[padre]" value="" class=""/>
	</div>
</div>

<div class="row">
	<div class="label">
		<label><?php echo __("Madre", $module) ?></label>
	</div>
	<div class="input">
		<input type="text" id="filter[madre]" name="filter[madre]" value="" class=""/>
	</div>
</div>




<div class="row">
	<div class="label">
		<label for="filter[id_missione]"><?php echo __("Missione", $module) ?></label>
	</div>
	<div class="input">
		<select name="filter[id_missione]" id="filter[id_missione]">
		<option></option>
		<?php if($rows = $this->ass->get_missioni()): ?>
		<?php foreach($rows as $a): ?>
		<option value="<?php echo $a['id'] ?>"><?php echo $a['nome'] ?></option>
		<?php endforeach; ?>
		<?php endif; ?>
		</select>
	</div>
</div>


<div class="row">
	<div class="label">
		<label><?php echo __("Stato", $module) ?></label>
	</div>
	<div class="input">
		<input type="text" id="filter[stato]" name="filter[stato]" value="" class=""/>
	</div>
</div>



<div class="row">
	<div class="label">
		<label for="filter[attivo]"><?php echo __("Attivo", $module) ?></label>
	</div>
	<div class="">
			<select name="filter[attivo]">
			<option value="t"><?php echo __("Tutti", $module) ?></option>
			<option value="s" selected><?php echo __("Attivo", $module) ?></option>
			<option value="n"><?php echo __("Non attivo", $module) ?></option>
			</select>
	</div>
</div>


<div class="buttons">


<input type="submit" name="submit" id="submit" value=" <?php echo __("Cerca", $module) ?> " />
<a href="<?php echo site_url('adozioni/anagrafica/assistiti') ?>" ><?php echo __("Annulla", $module) ?></a>
</div>
</div>
</form>